import { createRouter, createWebHashHistory } from "vue-router"

const routes = [
  {
    path: '/',  //首页(Index)
    redirect: '/index'
  },
  {
    path: '/index',  //首页(Index)
    name: 'index',
    component:()=>import('../views/index/index.vue')
  },
  {
    path: '/consultant',  //智能投顾
    name: 'consultant',
    component:()=>import('../views/consultant/consultant.vue')
  },
  {
    path: '/riskdec',  //风险前置
    name: 'riskdec',
    component:()=>import('../views/riskdec/riskdec.vue')
  },
  {
    path: '/riskdec/p1',  //风险前置
    name: 'riskdecP1',
    component:()=>import('../views/riskdec/p1.vue')
  },
  {
    path: '/riskdec/p2',  //风险前置
    name: 'riskdecP2',
    component:()=>import('../views/riskdec/p2.vue')
  },
  {
    path: '/riskdec/p3',  //风险前置
    name: 'riskdecP3',
    component:()=>import('../views/riskdec/p3.vue')
  },
  {
    path: '/riskdec/p4',  //风险前置
    name: 'riskdecP4',
    component:()=>import('../views/riskdec/p4.vue')
  },
  {
    path: '/aboutus',  //关于我们
    name: 'aboutus',
    component:()=>import('../views/aboutus/aboutus.vue')
  }
]

const router = createRouter ({
  history: createWebHashHistory(),
  routes
})
export default router
